import {createRouter,createWebHistory} from 'vue-router'

import Search from '@/view/HomePage.vue'
import Test from '@/components/test.vue'
import Detail from '@/view/DetailPage.vue'
// import Search from '@/components/searchIndex.vue'
const router = createRouter({
    history:createWebHistory(),  
    routes:[
        {
            path:'/',
            component: Search,
        },
        {
            path:'/test',
            component: Test
        },
        {
            path:'/detail/:apiName',
            component: Detail,
            
        }
    ]
})

// 暴露router
export default router